package yl.hs.bmipfull.daos.material;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import yl.hs.bmipfull.daos.BaseDao;
import yl.hs.bmipfull.pojo.material.PurchaseSystemLogEntity;

import java.util.List;
import java.util.Map;

/*
 * IPurchaseSystemLogDao
 * @category
 * @author 谢景广
 * @date 2021-05-25
 */
@Repository
public interface IPurchaseSystemLogDao extends BaseDao<PurchaseSystemLogEntity> {
    /**
     * @param query
     * @return
     */
    Integer queryCountByCondition(@Param("query") Map<String, Object> query, String dataSN);
    Integer queryCountByConditions(@Param("map") Map<String, Object> query);
    /**
     * @param query
     * @return
     */
    List<PurchaseSystemLogEntity> queryListByCondition(@Param("query") Map<String, Object> query, String dataSN);

    List<PurchaseSystemLogEntity> queryLsitByDataSn(String dataSN);
    List<PurchaseSystemLogEntity> queryByEntity(@Param("map") Map<String, Object> query);
}
